package com.qdl.rym.system.po;

import com.qdl.rym.base.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: Album
 * @Author: ChenXueLi
 * @Date: 2019/3/19 14:08
 * 你是一段成熟的代码，要学会自己改bug
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "c_album")
public class Album extends BaseDTO {

    @ApiModelProperty(value = "相册记录id", name = "albumId")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer albumId;

    @ApiModelProperty(value = "相册标题", name = "title")
    private String title;

    @ApiModelProperty(value = "相册描述", name = "describe")
    private String describe;

}
